<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>菜单</title>
    <link rel="stylesheet" type="text/css" href="../../themes/bootstrap/cetc54.ui.all.css">

</head>
<body>
<input type="button" class="button" id="btn1" value="本地配置json数据生成menu">

<div id="menu_json"></div>
</body>
<script type="text/javascript" src="../../lib/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../../release/cetc54.ui.all.js"></script>
<script>
    $(function () {
        $('#menu_json').uiMenu({
            minWidth: 130,
            maxWidth: 230,
            dataSource: [
                {id: '001', label: '节点一', url: 'base.html', seperator: true},
                {id: '002', label: '节点二', url: '', icon: 'home', children: [
                    {id: '002001', label: '节点二一', url: 'base.html', children: [
                        {id: '002001001', label: '节点二一一', url: 'base.html', icon: 'home'},
                        {id: '002001002', label: '节点二一二', url: 'base.html'}
                    ]},
                    {id: '002002', icon: 'home', label: '节点二二', url: 'base.html'}
                ]
                }
            ]
        });
        $('#btn1').click(function () {
            $('#menu_json').uiMenu('show', this);
        });
    });
</script>
</html>